package scheduler.core.utils;

/**
 *
 * @author Volodymyr Pogorelov
 */
public class TaskjValidationException extends Exception{
    public enum ErrorType { INVALID_ID, 
                            INVALID_PRIORITY,
                            INVALID_AJ,
                            INVALID_BJ 
                          }
    private ErrorType errorType;
    private int taskId;

    public TaskjValidationException(int taskId, ErrorType errorType, String message) {
        super(message);
        this.taskId = taskId;
        this.errorType = errorType;
    }

    public ErrorType getErrorType() {
        return errorType;
    }

    public int getTaskId() {
        return taskId;
    }
    
}
